//
//  photoCell.m
//  timemovie
//
//  Created by Yiqiao on 15/7/23.
//  Copyright (c) 2015年 Yiqiao. All rights reserved.
//

#import "photoCell.h"

@implementation photoCell

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _scrollView = [[photoScroll alloc]initWithFrame:self.bounds];
        _scrollView.tag = 100;
        [self.contentView addSubview:_scrollView];
        //_scrollView.imageUrl = self.imageUrl;
    }
    return self;
}

- (void)setImageUrl:(NSString *)imageUrl{
    _imageUrl = imageUrl;
    [self setNeedsLayout];
}

- (void)layoutSubviews{
    _scrollView.imageUrl = self.imageUrl;
}
@end
